 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="title">
            <h2><a href="#" class="back" onclick="history.go(-1)"/>Visualizar Etiqueta</h2>
        </ui:define>

        <ui:define name="body">

            <p:panel styleClass="container_24 clearfix">
                <div class="buttonAction" style="float: right">
                    <p:button value="Editar" href="editararquivo.xhtml?ePro=#{managerPesquisarArquivo.protocolo.id}" 
                              icon="ui-icon-pencil" styleClass="ui-priority-primary"/>
                </div>
            </p:panel>


            <h:form id="clienteForm" enctype="multipart/form-data">            
                <p:messages id="messages" closable="true" showDetail="true" autoUpdate="true"  />
                <p:panel id="dadosGeraisPanel" styleClass="container_24 clearfix">
                    <h2><a href="#">Dados Gerais</a></h2>
                    <p:outputLabel value="Protocolo:" styleClass="grid_3"/>
                    <p:inputText  styleClass="grid_8" value="#{managerPesquisarArquivo.numeroProtocolo()}" readonly="true"/> 

                    <p:outputLabel value="Data:" styleClass="grid_3"/>
                    <p:inputText id="dataCalendar" value="#{managerPesquisarArquivo.arquivoVisualizar.anoArquivo}"
                                 readonly="true" styleClass="grid_8">
                        <f:convertDateTime pattern="dd/MM/yyyy" />
                    </p:inputText>
                </p:panel> 

                <p:panel id="dadosEtiqueta" styleClass="container_24 clearfix">
                    <h2><a href="#">Etiqueta</a></h2>

                    <p:outputLabel value="Caixa:" styleClass="grid_3"/>
                    <p:inputText styleClass="grid_8" readonly="true"
                                  value="#{managerPesquisarArquivo.arquivoVisualizar.numCaixa}"/> 

                    <p:outputLabel value="Prateleira:" styleClass="grid_3"/>
                    <p:inputText styleClass="grid_8" readonly="true"
                                 value="#{managerPesquisarArquivo.arquivoVisualizar.pratileira}"/>
                    <div class="clear"/>

                    <p:outputLabel value="Estante:" styleClass="grid_3"/>
                    <p:inputText  styleClass="grid_8" readonly="true"
                                  value="#{managerPesquisarArquivo.arquivoVisualizar.estante}"/>

                    <p:outputLabel value="Ala:" styleClass="grid_3" />
                    <p:inputText styleClass="grid_8" readonly="true"
                                 value="#{managerPesquisarArquivo.arquivoVisualizar.ala.nome}" />

                </p:panel> 

                <div class="buttonAction">
                    <p:button value="Cancelar" icon="ui-icon-circle-close"
                              href="pesquisararquivo.xhtml" />
                </div>
            </h:form>

        </ui:define>
    </ui:composition>
</html>



